package com.boatAnchorAssistant.service.repository.impl;

import com.boatAnchorAssistant.pojo.entity.AlarmCause;
import com.boatAnchorAssistant.service.mapper.AlarmCauseMapper;
import com.boatAnchorAssistant.service.repository.in.AlarmCauseRepository;
import nirvana.core.repository.Repository;
import org.springframework.stereotype.Service;
    import com.boatAnchorAssistant.pojo.dto.alarmCause.*;
    import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
* 【描 述】：
* 【环 境】：J2SE
* 【详 细】：
*
*/
@Service
public class AlarmCauseRepositoryImpl extends Repository< AlarmCauseMapper , AlarmCause> implements AlarmCauseRepository {

private final AlarmCauseMapper mapper;

public AlarmCauseRepositoryImpl(AlarmCauseMapper mapper) {
this.mapper = mapper;
}

    /**
    * 搜索报警原因
    * @param dto
    * @return
    */
    @Override
    public Page< AlarmCause > selectAlarmCause(SelectAlarmCauseDto dto){

    return mapper.selectAlarmCause(dto);
    }

}